package com.ruoyi.web.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品分类对象 category
 *
 * @author mengtian
 * @date 2025-06-14
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 分类图片URL */
    @Excel(name = "分类图片URL")
    private String picture;

    /** 父分类ID */
    private String parentId;

    /** 父分类名称 */
    @Excel(name = "父分类名称")
    private String parentName;

    /** 分类层级(1-一级分类 2-二级分类 */
    @Excel(name = "分类层级(1-一级分类 2-二级分类")
    private Long layer;

    /** 销售信息 */
    @Excel(name = "销售信息")
    private String saleInfo;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }

    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }

    public void setParentName(String parentName)
    {
        this.parentName = parentName;
    }

    public String getParentName()
    {
        return parentName;
    }

    public void setLayer(Long layer)
    {
        this.layer = layer;
    }

    public Long getLayer()
    {
        return layer;
    }

    public void setSaleInfo(String saleInfo)
    {
        this.saleInfo = saleInfo;
    }

    public String getSaleInfo()
    {
        return saleInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("picture", getPicture())
                .append("parentId", getParentId())
                .append("parentName", getParentName())
                .append("layer", getLayer())
                .append("saleInfo", getSaleInfo())
                .toString();
    }
}
